<!-- templates/404.html -->

<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <title>页面未找到 - DCO 检测系统</title>
    <!-- Bootstrap CSS -->
    <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/css/bootstrap.min.css" rel="stylesheet">
    <!-- Font Awesome (可选) -->
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css" integrity="sha512-papz8Upz6G9GR1q14heKIUeBjB8+x+u94mQk+NkI5EYlv5eGvPukAGUwjPdlDrFw+aWZ21nUB4+eFGEcLZ8fnA==" crossorigin="anonymous" referrerpolicy="no-referrer" />
    <!-- 自定义 CSS -->
    <link href="{{ url_for('static', filename='css/styles.css') }}" rel="stylesheet">
</head>
<body>
    <!-- 导航栏 -->
    <nav class="navbar navbar-expand-lg navbar-dark bg-dark fixed-top">
        <div class="container-fluid">
            <a class="navbar-brand" href="#">DCO管理系统</a>
            <button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarNav" 
                aria-controls="navbarNav" aria-expanded="false" aria-label="Toggle navigation">
                <span class="navbar-toggler-icon"></span>
            </button>
            <div class="collapse navbar-collapse" id="navbarNav">
                <ul class="navbar-nav ms-auto">
                    <!-- 事件管理菜单项 -->
                    <li class="nav-item">
                        <a class="nav-link" href="{{ url_for('view_events') }}">事件管理</a>
                    </li>
                    <!-- 用户管理菜单项 -->
                    <li class="nav-item">
                        <a class="nav-link" href="{{ url_for('view_installed_users') }}">用户管理</a>
                    </li>
                    <!-- 其他菜单项（如果有） -->
                    <!-- <li class="nav-item">...</li> -->
                </ul>
            </div>
        </div>
    </nav>    

    <!-- 主容器 -->
    <div class="container d-flex flex-column justify-content-center align-items-center" style="min-height: 80vh;">
        <h1 class="display-1 text-primary">404</h1>
        <p class="lead text-center mb-4">抱歉，您访问的页面不存在。</p>
        <a href="{{ url_for('view_events') }}" class="btn btn-primary btn-lg">
            <i class="fas fa-home me-2"></i> 返回首页
        </a>
    </div>

    <!-- Bootstrap JS -->
    <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/js/bootstrap.bundle.min.js"></script>
    <!-- 自定义 JS -->
    <script>
        // 可在此处添加自定义的 JavaScript 逻辑
    </script>
</body>
</html>
